home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Online / Apache / cgi-bin / finger2.rexx < prev    next >
OS/2 REXX Batch file  |  1997-04-15  |  1KB  |  40 lines

  1. /* testing rexx command */
  2. address command
  3.  
  4. work = "pipe:cgi-finger-" || pragma( "ID" )
  5.  
  6. parse arg user
  7.  
  8. say "Content-type: text/html"
  9. say ""
  10.  
  11. Finger = "inet:bin/finger"
  12. Img = '<img src="http://queer.slip.cs.cmu.edu/amlogosmall.gif">'
  13. num = date('D')*96 + (time('M') % 15)
  14. num2= num % 8
  15.  
  16. if exists( Finger )
  17. then do
  18.     if User =  ""
  19.     then do
  20.         say "<TITLE>Arexx Finger Gateway running on an amiga</TITLE>"
  21.         say "<H1>"||Img||"Finger Gateway</H1>"
  22.         say ""
  23.         say "<ISINDEX>"
  24.         say "<p>The time is "||time('Civil')||" on "||date('Normal')||" here in Pittsburgh."
  25.         say "<p>That means that approximately <b>"||num||"</b>  people, <b>"||num2||"</b> of them children, have been killed by guns in the United States so far this year."
  26.         say '<p>This is a gateway to "finger". It is written in arexx, and running on an amiga.<br>'
  27.         say 'Type a user@host combination in your browser''s'
  28.         say "search dialog.<P>"
  29.     end
  30.     else do
  31.         say "<h1>"||Img||"Result of finger "||user||"</h1><hr>"
  32.         say "<PRE>"
  33.         Finger user
  34.         say "</pre>"
  35.     end
  36. end
  37. else do
  38.     say "Cannot find finger on this system."
  39. end
  40.